<?php
if ($this->session->userdata('admin'))
{
$this->load->view('header');  ?>
</div>
<div id="main">
<div id="right">
	        <h4>Cl&iacute;nica Real Felipe</h4>
					<!-- Derecha arriba-->
                    <div align="right"><a href='/RealFelipe/mantenedor/index'>&lt;&lt; Volver a Mantenedores</a></div>
					<div class="hr2"> </div>
					<h5></h5>
					<!-- Derecha abajo-->
<p><?php echo anchor(array($base_uri, 'view'), '&lt; '.$scaff_view_all); ?></p>


<?php echo form_open($action); ?>

<table border="0" cellpadding="3" cellspacing="1">
<?php foreach($fields as $field): ?>

<?php if ($field->primary_key == 1) continue; ?>

<tr>
	<td><?php echo $field->name; echo ' '.$field->default; ?></td>
	
	<?php if ($field->type == 'blob'): ?>
	<td><textarea class="textarea" name="<?php echo $field->name; ?>" cols="60" rows="10" ><?php echo form_prep($field->default); ?></textarea></td>
	<?php else : ?>
	<td><input class="input" name="<?php echo $field->name; ?>" value="<?php echo form_prep($field->default); ?>" size="60" /></td>
	<?php endif; ?>
	
</tr>
<?php endforeach; ?>
</table>

<input type="submit" class="submit" value="Insert" />

</form>                     
					<!--<div class="read"><a href="#">read more</a></div>-->
		</div>
		
		<div id="left">
				<h3>Administraci&oacute;n</h3>
                <h4></h4>
				<!-- Izq arriba-->
               
				<div class="hr1"></div>
				<h4></h4>
				<div class="company">
				<!-- Izq abajo-->
                
 		 </div>
</div>


<?php $this->load->view('footer'); 
}
else{
redirect('inicio/login');
//redirect('login'.$this->uri->uri_string());
}
/* End of file add.php */
/* Location: ./system/scaffolding/views/add.php */